package com.lj.play;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Director {
    @Test
    public void direct(){
        MyApplicationContext ac = new MyApplicationContext("applicationContext.xml");
        MoAttack moAttack = (moAttack)ac.getBean("moAttack");
        Geli geli = (geli)ac.getBean("geliImpl");
        moAttack.setGeli(geli);
        moAttack.cityGateAsk();
    }
}
